package com.bionic.CES.connections;

import com.bionic.CES.DAO.IUserDAO;
import com.bionic.CES.DAO.IBankaccDAO;
import com.bionic.CES.DAO.IOfficialbankrateDAO;
import com.bionic.CES.DAO.ISystemaccDAO;
import com.bionic.CES.DAO.ICurrencyDAO;
import com.bionic.CES.DAO.IQueryDAO;
import com.bionic.CES.DAO.IExecutedqueriesDAO;
import com.bionic.CES.DAOImplementation.MySQLSystemaccDAO;
import com.bionic.CES.DAOImplementation.MySQLBankaccDAO;
import com.bionic.CES.DAOImplementation.MySQLOfficialbankrateDAO;
import com.bionic.CES.DAOImplementation.MySQLExecutedqueriesDAO;
import com.bionic.CES.DAOImplementation.MySQLQueryDAO;
import com.bionic.CES.DAOImplementation.MySQLUserDAO;
import com.bionic.CES.DAOImplementation.MySQLCurrencyDAO;
import java.sql.Connection;

public class MySQLDAOFactory extends DAOFactory {
    
    public static Connection createConnection() {
    return ConnectionManager.getInstance().getConnection(); 
    }
    
    public  IBankaccDAO getBankaccDAO(){
    return new MySQLBankaccDAO();
    }
    
    public  ICurrencyDAO getCurrencyDAO(){
    return new MySQLCurrencyDAO();
    }

    public  IOfficialbankrateDAO getOfficialbankrateDAO(){
    return new MySQLOfficialbankrateDAO();
    }

    public  IQueryDAO getQueryDAO(){
    return new MySQLQueryDAO();
    }

    public  IExecutedqueriesDAO getExecutedqueriesDAO(){
    return new MySQLExecutedqueriesDAO();
    }

    public  ISystemaccDAO getSystemaccDAO(){
    return new MySQLSystemaccDAO();
    }

    public  IUserDAO getUserDAO(){
    return new MySQLUserDAO();
    }   
}